package com.lxr.iot.client.HearEmnu;

import io.netty.handler.codec.mqtt.MqttMessageType;

public enum BeanEnmu {

    sub(1),
    pub(2);

    private final int type;

    private BeanEnmu(int type){
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public static BeanEnmu valueOf(int type) {
        BeanEnmu[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            BeanEnmu t = var1[var3];
            if (t.type == type) {
                return t;
            }
        }

        throw new IllegalArgumentException("unknown message type: " + type);
    }
}
